import request from '@/utils/request'

// 获取文章分类
export const getCateList = obj => {
  return request.get('/my/cate/list', obj)
}

// 新增文章分类
export const addCate = data => {
  return request.post('/my/cate/add', data)
}

// 获取文章分类详情
export const getCateInfo = id => {
  return request.get('/my/cate/info', {
    params: {
      id
    }
  })
}

// 更新文章分类
export const updateCate = data => {
  return request.put('/my/cate/info', data)
}

// 删除文章分类
export const delCate = id => {
  return request.delete('/my/cate/del', {
    params: {
      id
    }
  })
}
